<?php


namespace app\service\model;


class MemberCouponModel extends BaseModel
{

    protected $table = 'member_coupon';

    /**
     * 优惠券
     * @return \think\model\relation\BelongsTo
     */
    public function coupon(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(CouponModel::class, 'coupon_id', 'id');
    }
}